<ui:composition
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:easy="http://easy.widgets.com">
<a4j:region>
<rich:dataTable value="#{value}" rows="10" var="email"
onRowMouseOver="this.style.backgroundColor='#F1F1F1'" id="tableListaEmail"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
        <f:facet name="header">
                <rich:columnGroup>
                    <rich:column>
                        #{rotulo['email']}
                    </rich:column>

                    <rich:column>
                        #{rotulo['editar']}
                    </rich:column>
                    <rich:column>
                        #{rotulo['excluir']}
                    </rich:column>
                </rich:columnGroup>
        </f:facet>
<rich:column>
    <h:outputText value="#{email.email}"/>
</rich:column>


 <rich:column>
    <div align="center">
        <a4j:commandLink action="#{controller.editar}" value="Editar" reRender="#{reRender}">
            <f:setPropertyActionListener value="#{email}" target="#{emailInformado}"/>
        </a4j:commandLink>
    </div>
 </rich:column>
 <rich:column>
    <div align="center">
        <a4j:commandLink action="#{controller.excluirEmail}" value="Excluir" reRender="#{reRender}">
            <f:setPropertyActionListener value="#{email}" target="#{emailInformado}"/>
        </a4j:commandLink>
    </div>
 </rich:column>
</rich:dataTable>
</a4j:region>
</ui:composition>

